package operation;

import book.Book;
import book.BookList;

/**
 * @ClassDescription:
 * @JdkVersion: 1.8
 * @Author: 李白
 * @Created: 2024/8/19 21:19
 */
public class ShowOperation implements IOPreparation{
    public void work(BookList bookList){
        int currentSize = bookList.getSize();
        System.out.println("打印如下");
        for (int i = 0; i < currentSize; i++) {
            Book book = bookList.getBook(i);
            System.out.println(book);
        }

    }
}
